home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / gnuplot / makefile.djg < prev    next >
Makefile  |  1993-05-11  |  3KB  |  93 lines

  1. # make file for DJGPP and ndmake 4.5
  2.  
  3. # problems using DJGPP 1.08 as at 6 Oct 1992
  4. #   1. signal(SIGFPE,...)  not working.   
  5. #      floating point exceptions TERMINATE gnuplot.
  6. #      This is because signal is defined as signal(){} !!!
  7. #   2. graphics sometimes draws the x axis in the wrong place
  8.  
  9. # The above problems make gnuplot UNUSABLE under DJGPP at present.
  10.  
  11. # where to place gnuplot.gih helpfile
  12. HELPFILE = gnuplot.gih
  13.  
  14. # compiler
  15. CCDIR = c:\gcc\bin
  16. CC = $(CCDIR)\gcc
  17. # include directory
  18. INCLUDE =-Ic:/gcc/include
  19.  
  20. CFLAGS = -DMSDOS -DDJGPP -DREADLINE
  21. TERMFLAGS = -DDJSVGA
  22. LINKOPT = -lm -lpc -lgr
  23.  
  24. CSOURCE5 = term/ai.trm term/amiga.trm term/aed.trm term/atari.trm \
  25.     term/bigfig.trm term/cgi.trm term/djsvga.trm term/dumb.trm \
  26.     term/dxf.trm term/dxy.trm \
  27.     term/debug.trm term/eepic.trm term/epson.trm term/fig.trm  \
  28.     term/hp26.trm term/hp2648.trm term/hpgl.trm  \
  29.     term/hpljii.trm term/metafont.trm\
  30.     term/apollo.trm term/gpr.trm term/hppj.trm term/compact.c 
  31. CSOURCE6 = term/impcodes.h term/imagen.trm term/next.trm term/object.h \
  32.     term/iris4d.trm term/kyo.trm term/latex.trm term/mif.trm \
  33.     term/pbm.trm term/pc.trm 
  34. CSOURCE7 = term/post.trm term/qms.trm term/regis.trm term/sun.trm \
  35.     term/t410x.trm term/tek.trm term/texdraw.trm term/unixpc.trm \
  36.     term/unixplot.trm term/v384.trm term/vws.trm term/x11.trm term/xlib.trm
  37. OBJ1 =  bitmap.o command.o contour.o eval.o graphics.o graph3d.o
  38. OBJ2 =    help.o internal.o misc.o parse.o plot.o readline.o
  39. OBJ3 =    scanner.o setshow.o specfun.o standard.o term.o util.o
  40. OBJ4 =    version.o gnubin.o binary.o
  41.  
  42. OBJS =    $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)
  43.  
  44. .c.o:  
  45.     $(CC) -c $(CFLAGS) $(INCLUDE) $<
  46.  
  47. all: gp32.exe $(HELPFILE)
  48.  
  49. gp32.exe : $(OBJS)
  50.     @>gcclink.rsp $(OBJS)
  51.     $(CC) -o gp32 @gcclink.rsp $(LINKOPT)
  52.     copy /b $(CCDIR)\go32.exe+gp32 gp32.exe
  53.  
  54.  
  55. command.o: command.c plot.h setshow.h help.h
  56.     $(CC) -c $(CFLAGS) $(INCLUDE) -DHELPFILE=\"$(HELPFILE)\" command.c
  57.  
  58. term.o: term.c term.h plot.h setshow.c bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  59.     $(CC) -c $(CFLAGS) $(INCLUDE) $(TERMFLAGS) -Iterm term.c
  60.  
  61. $(OBJS): plot.h
  62.  
  63. command.o help.o misc.o: help.h
  64.  
  65. command.o graphics.o graph3d.o misc.o plot.o setshow.o term.o: setshow.h
  66.  
  67. bitmap.o term.o: bitmap.h
  68.  
  69. # convert gnuplot.doc to gnuplot.gih
  70. $(HELPFILE): doc2gih.exe docs\gnuplot.doc
  71.     doc2gih docs\gnuplot.doc $(HELPFILE)
  72.  
  73. doc2gih.exe: docs\doc2gih.c
  74.     $(CC) $(CFLAGS) $(INCLUDE) -o doc2gih docs/doc2gih.c
  75.     copy /b $(CCDIR)\go32.exe+doc2gih doc2gih.exe
  76.  
  77.  
  78. # clean target - remove all temp files, but leave executable intact
  79. # needed when changing configuration (model or overlaying)
  80.  
  81. clean:
  82.     del *.o
  83.     del gp32
  84.     del doc2gih
  85.  
  86. # realclean target - remove all files created by the makefile
  87.  
  88. realclean: clean
  89.     del gp32.exe
  90.     del doc2gih.exe
  91.     del gnuplot.gih
  92.  
  93.